package com.gin.web.exp;


/**
 * create  on 2020-02-19 14:46
 * 基础异常类
 */
public class BasicException extends RuntimeException {

    public ExpCode expCode;

    public BasicException(ExpCode expCode) {
        super(expCode.msg);
        this.expCode = expCode;
    }

    public BasicException(Integer code, String msg) {
        super(msg);
        this.expCode = ExpCode.INIT;
        this.expCode.code = code;
        this.expCode.msg = msg;
    }

}
